#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
    int N;
    cin >> N;
    
    float sum = 0;
    float max = 0;
    float min = 100;
    for(int i = 0; i<N; i++)
    {
        int * p  = new int;
        cin >> *p;
        sum = sum + *p;
        if( *p> max)
            max = *p;
        if( *p< min)
            min = *p;
        delete p;   
    }
    cout << "average = " << fixed << setprecision(2) << sum /(float)N << endl;
    cout << "max = " <<fixed << setprecision(2) <<max << endl;
    cout << "min = " <<fixed << setprecision(2) <<min << endl;
}